package com.k.kpp.biz.datasource.model;

/**
 * @author k
 * -- sqlite
CREATE TABLE t_datasource_info (
guid TEXT NOT NULL,
code TEXT,
db_name TEXT,
db_type INTEGER,
db_ip TEXT,
db_port INTEGER,
db_username TEXT,
db_password TEXT,
db_current INTEGER
);
 */
public class DataSourceSettingEntity {
    private String guid;
    private String code;
    private String dbType;
    private String dbIp;
    private Integer dbPort;
    private String dbName;
    private String dbUsername;
    private String dbPassword;

    /**
     * 0: 非当前使用的数据源
     * 1：切换为当前使用的数据源
     */
    private Integer dbCurrent;

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getDbIp() {
        return dbIp;
    }

    public void setDbIp(String dbIp) {
        this.dbIp = dbIp;
    }

    public Integer getDbPort() {
        return dbPort;
    }

    public void setDbPort(Integer dbPort) {
        this.dbPort = dbPort;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDbUsername() {
        return dbUsername;
    }

    public void setDbUsername(String dbUsername) {
        this.dbUsername = dbUsername;
    }

    public String getDbPassword() {
        return dbPassword;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    public Integer getDbCurrent() {
        return dbCurrent;
    }

    public void setDbCurrent(Integer dbCurrent) {
        this.dbCurrent = dbCurrent;
    }
}
